//
//  LivePlayViewController.m
//  YUXiu
//
//  Created by wang on 16/6/29.
//  Copyright © 2016年 Wang. All rights reserved.
//

#import "LivePlayViewController.h"

@interface LivePlayViewController ()

@end

@implementation LivePlayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIImageView *bacnIcon = [[UIImageView alloc]initWithFrame:krect(0, 0, kScreenWidth, kScreenHeight)];
    bacnIcon.tag = 9;
    [bacnIcon setImage:kCreatImage(@"livePlay")];
    bacnIcon.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap:)];
    [bacnIcon addGestureRecognizer:tap];
    
    [kKeyWindow addSubview:bacnIcon];
    
}
-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
//    UIImageView *img = (UIImageView*)[kKeyWindow viewWithTag:9];
//    [img removeFromSuperview];
    
}
-(void)tap:(UITapGestureRecognizer *)ges{
    UIImageView *img = (UIImageView*)[kKeyWindow viewWithTag:9];
    if (img) {
        [img removeFromSuperview];
        [self.navigationController popViewControllerAnimated:YES];
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
